require('module-alias/register')

const Koa = require('koa')
const koaBodyParser = require('koa-bodyparser')
const koaStatic = require('koa-static')
const path = require('path')
const logger = require('koa-logger')
const InitManager = require('./core/init')
const catchError = require('@root/middlewares/exception')

const app = new Koa()

app.use(logger())
app.use(catchError)
app.use(koaBodyParser())

InitManager.initCore(app)

app.listen(3000)
